/**
 * Copyright (C), 2015-2020, XXX有限公司
 * FileName: Docter
 * Author:   ZX
 * Date:     2020/6/15 9:15
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package org.example.entity;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 〈一句话功能简述〉<br> 
 * 〈〉
 *
 * @author ZX
 * @create 2020/6/15
 * @since 1.0.0
 */
@Component
public class Docter {
    @Value("${name}")
private String name;
//    @Value("${age}")
private int age;

    @Override
    public String toString() {
        return "Docter{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void say() {
        System.out.println("勤洗手");
    }
}